package com.app.model;

import com.baomidou.mybatisplus.annotation.*;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 售劵专区表
 * </p>
 *
 * @author yoominic
 * @since 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_securities_trading_zone")
public class SecuritiesTradingZone implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 商家的userID
     */
    private Integer userId;

    private Integer businessId;

    private transient String businessName;
    private transient String businessPhone;
    private transient String bankBranch;
    private transient String bankName;
    private transient String bankNum;
    private transient String bankUserName;


    /**
     * 出售时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:MM:SS", timezone = "GMT+8")
    private Date saleTime;

    /**
     * 劵额
     */
    private Integer amount;

    /**
     * 状态   0售罄 1在售 2删除
     */
    private Integer status;

    /**
     * 收款方式 1微信收款码 2银行卡
     */
    private Integer payType;

    /**
     * 收款表ID 银行卡信息或者微信收款码
     */
    private Integer payInfoId;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:MM:SS", timezone = "GMT+8")
    private Timestamp createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:MM:SS", timezone = "GMT+8")
    private Timestamp updateTime;

    private String picUrl;
    @TableField(exist = false)
    private TbSellingCustomer tbSellingCustomer;
}
